package com.project.service.Impl;

import com.project.bean.UserBean;
import com.project.dao.IUserDao;
import com.project.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements IUserService {
    @Autowired
    private IUserDao dao;
    @Override
    public UserBean login(String name, String pwd) {
        return dao.login(name,pwd);
    }

    @Override
    public void sigIn(UserBean userBean) {
         dao.sigIn(userBean);
    }

    @Override
    public UserBean findById(Integer id) {
        return dao.findById(id);
    }
}
